<template>
  <div>
    <el-container>
      <el-col style=" width: 200px;
    min-height: 400px;">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          style="padding-bottom:180px;"
        >
          <!-- 工作臺高度 -->
          <span style=" display:block;padding:40px 12px 15px;">
            <el-button type="primary" style="width:180px;" @click="btns">
              快速创建
              <i class="el-icon-arrow-right" style="padding-left:15px;"></i>
            </el-button>
          </span>
          <router-link to="/office/gzt" style="color:#fff;">
            <el-menu-item index="1">
              <i class="iconfont icon-diannao"></i>
              <span>工作台</span>
            </el-menu-item>
          </router-link>
          <router-link to="/office/rc" style="color:#fff;">
            <el-menu-item index="2">
              <i class="el-icon-s-order"></i>
              <span slot="title">日程</span>
            </el-menu-item>
          </router-link>
          <router-link to="/office/task" style="color:#fff;">
            <el-menu-item index="3">
              <i class="el-icon-s-claim"></i>
              <span slot="title">任务</span>
            </el-menu-item>
          </router-link>
          <router-link to="/office/gs" style="color:#fff;">
            <el-menu-item index="4">
              <i class="el-icon-tickets"></i>
              <span slot="title">公告</span>
            </el-menu-item>
          </router-link>
          <router-link to="/office/rz" style="color:#fff;">
            <el-menu-item index="5">
              <i class="el-icon-document-copy"></i>
              <span slot="title">日志</span>
            </el-menu-item>
          </router-link>
          <router-link to="/office/sp" style="color:#fff;">
            <el-menu-item index="6">
              <i class="el-icon-s-check"></i>
              <span slot="title">审批</span>
            </el-menu-item>
          </router-link>
          <router-link to="/office/tellphone" style="color:#fff;">
            <el-menu-item index="7">
              <i class="el-icon-document"></i>
              <span slot="title">通讯录</span>
            </el-menu-item>
          </router-link>
        </el-menu>
      </el-col>

      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script scoped>
import http from "@/util/http.js";
export default {
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
    btns() {},
  },
};
</script>

<style scoped>
* {
  text-decoration: none;
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}
/* .btnsover {
  padding: 15px 12px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
} */

.el-aside {
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  color: #333;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>
